import axios from '@/libs/api.request'

/**
 * 获取表格数据
 * @return {[type]}        [description]
 */
export const fetchTableData = params => {
  return axios.request({
    url: '/api/leakage/getPaged',
    method: 'get',
    params
  })
}
/**
 * 获取中间区域上部分箱线图
 * @return {[type]}        [description]
 */
export const fetchEBoxline = params => {
  return axios.request({
    url: '/api/leakage/getMeterGasByHours',
    method: 'get',
    params
  })
}

/**
 * 获取中间区域下半部分折线图
 * @return {[type]}        [description]
 */
export const fetchELine = params => {
  return axios.request({
    url: '/api/leakage/getMeterGasParallel',
    method: 'get',
    params
  })
}

/**
 * 获取右侧区域上半部分日历图
 * @return {[type]}        [description]
 */
export const fetchCalendar = params => {
  return axios.request({
    url: '/api/leakage/getMeterGasByCalendar',
    method: 'get',
    params
  })
}
/**
 * 表具详情
 * @return {[type]}        [description]
 */
export const fetchMeterDetail = id => {
  return axios.request({
    url: '/api/meterManage/meyerQuery/getMeterBeanByMeterId/' + id,
    method: 'get'
  })
}
